package buildings.dwelling;

import buildings.Building;
import buildings.Floor;
import buildings.Space;

public class DwellingFactory implements buildings.BuildingFactory {
    
    public Space createSpace(float area) {
        return new Flat(area);
    }
    
    public Space createSpace(int roomsCount, float area) {
        return new Flat(roomsCount, area);
    }
    
    public Floor createFloor(int spacesCount) {
        return new DwellingFloor(spacesCount);
    }
    
    public Floor createFloor(Space[] spaces) {
        return new DwellingFloor(spaces);
    }
    
    public Building createBuilding(int floorsCount, int[] spacesCounts) {
        return new Dwelling(floorsCount, spacesCounts);
    }
    
    public Building createBuilding(Floor[] floors) {
        return new Dwelling(floors);
    }
    
}
